home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / LOCATE.C < prev    next >
Text File  |  1989-04-09  |  398b  |  23 lines

  1. #include <jaz.h>
  2. extern int g_row,g_col,_row1,_row2,_col1,_col2;
  3. locate (frow , fcol )
  4. int frow , fcol;
  5. {
  6.   TREG wreg;
  7.  
  8.   frow += _row1;
  9.   fcol += _col1;
  10.  
  11.   frow = max(frow,_row1);
  12.   frow = min(frow,_row2);
  13.   fcol = max(fcol,_col1);
  14.   fcol = min(fcol,_col2);
  15.  
  16.   wreg.h.bh = 0;         /* page 0 */
  17.   wreg.h.ah = 2;
  18.   wreg.h.dh = frow;
  19.   wreg.h.dl = fcol;
  20.   intr(0x10,&wreg);
  21. }
  22.  
  23.